package org.boyan.modules.config.b;


import java.util.Comparator;
import org.boyan.modules.cgform.entity.OnlCgformField;
/**
 * @author: zhuxiaobao
 * @time: 2021/9/24 17:35
 */


public class f implements Comparator<OnlCgformField> {
    public f() {
    }

    @Override
    public int compare(OnlCgformField var1, OnlCgformField var2) {
        if (var1 != null && var1.getOrderNum() != null && var2 != null && var2.getOrderNum() != null) {
            Integer var3 = var1.getOrderNum();
            Integer var4 = var2.getOrderNum();
            return var3 < var4 ? -1 : (var3.equals(var4) ? 0 : 1);
        } else {
            return -1;
        }
    }
}
